<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../laydate/laydate.js"></script>
  <script type="text/javascript" src="../../js/jquery.js"></script>
  <script type="text/javascript" src="../../js/sys/users/userUpdate.js"></script>
<style type="text/css">
  #birthday{
    padding-right: 0;
    height: 32px;
    line-height: 32px;
  }
</style>
</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li><a href="userList">系统管理</a></li>
    <li><a href="userList">用户管理</a></li>
    <li><a href="#">修改</a></li>
  </ul>
</div>
<div class="formbody">
  <div class="formtitle"><span>员工信息</span></div>
  <ul class="forminfo">
    <li>
      <label>员工编号</label>
      <input id="u_id" name="" type="text" th:value="${updateUser.u_id}" class="dfinput" />
      <i>必填，不能超过30个字符</i>
    </li>
    <li>
      <label>员工姓名</label>
      <input id="uname" name="" type="text" th:value="${updateUser.uname}" class="dfinput" />
      <i>必填，不能超过30个字符</i>
    </li>
    <li>
      <label>密码</label>
      <input id="upassword" name="" type="password" th:value="${updateUser.upassword}" class="dfinput" />
      <i>必填，不能超过30个字符</i>
    </li>
    <li>
      <label>性别</label>
      <cite>
          <input name="gender" type="radio" value="1" th:attr="checked=${updateUser.sex==1?true:false}" />男
          &nbsp;&nbsp;&nbsp;&nbsp;
          <input name="gender" type="radio" value="2"  th:attr="checked=${updateUser.sex==2?true:false}"/>女
      </cite>
    </li>
    <li>
      <label>联系方式</label>
      <input id="utelephone" name="" type="text" th:value="${updateUser.utelephone}" class="dfinput" />
      <i>必填，不能超过30个字符</i>
    </li>
    <li>
      <label>出生年月</label>
      <input name="" class="dfinput laydate-icon" id="birthday" th:value="${#dates.format(updateUser.birthday, 'yyyy-MM-dd HH:mm:ss')}">
    </li>
    <li>
      <label>所属部门</label>

      <select id="deptList" name="" class="dfselect" >
        <option  value="">请选择</option>
        <option th:each="item:${deptList1}"
                th:value="${item.dept_id}"
                th:selected="${updateUser.dept.dept_name==item.dept_name}">[[${item.dept_name}]]
        </option>

      </select>
    </li>
    <li>
      <label>职位</label>
      <select id="jobList" name="" class="dfselect">

        <option value="">请选择</option>
        <option th:each="item:${jobList1}"
                th:value="${item.job_id}"
                th:selected="${updateUser.job.job_name==item.job_name}">[[${item.job_name}]]
        </option>

      </select>
    </li>
    <li>
      <label>状态</label>
      <select id="statusId" name="" class="dfselect">

        <option
                th:value="1"
                th:selected="${updateUser.statusId!=1}?'':'selected'">在职
        </option>
        <option
                th:value="2"
                >离职
        </option>

      </select>
    </li>
    <li>
      <label>&nbsp;</label>
      <input id="baocun" name="" type="button" class="btn" value="确认保存"/>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="" type="button" class="btn" value="返回"  onclick="window.history.go(-1);"/>
    </li>
  </ul>
</div>
<script type="text/javascript">
  !function(){
    laydate.skin('molv');//切换皮肤，请查看skins下面皮肤库
    laydate({elem: '#birthday'});//绑定元素
  }();
</script>
</body>
</html>
